package com.hometeacher.api.repository;

import com.hometeacher.api.model.User;
import org.springframework.data.jpa.repository.JpaRepository;


/**
 * @author ZhaoYuan
 * @data 02/04/2020 18:44
 */

public interface UsersRepository extends JpaRepository<User,Long> {
    User findByPhoneNumber(String phoneNumber);
    User findUserByUid(String uid);
    User findUserByUsername(String username);
}
